<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Configuration
{

    public function __construct()
	{

		//$this->load->config('acl_auth', TRUE);
        
	}

	/**
	* __get
	*
	* Enables the use of CI super-global without having to define an extra variable.
	*
	* @access public
	* @param $var
	* @return mixed
	*/
	public function __get( $var )
	{
		return get_instance()->$var;
	}

    public function getPasswordExpiration(){
        $this->load->model('config_model');      
        return $this->config_model->get_config('password_expired');
    }
    
    public function getSessionExpiration(){
        $this->load->model('config_model');
        return $this->config_model->get_config('session_expired');
    }

    public function getPasswordCharacterLimit(){
        return 8;
    }

}